package com.example.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.mapper.OthersMapper;
import com.example.demo.po.Menu;
import com.example.demo.po.MenuExample;
import com.example.demo.po.Others;
import com.example.demo.po.OthersExample;
import com.example.demo.service.OtherService;

@Service
public class OtherServiceImpl implements OtherService{
	
	@Autowired
	private OthersMapper otherMapper;


	@Override
	public List<Others> selectAll() {
		// TODO Auto-generated method stub
		return otherMapper.selectByExample(null);
	}


	@Override
	public void insert(Others t) {
		// TODO Auto-generated method stub
		otherMapper.insert(t);
	}


	@Override
	public void update(Others t) {
		// TODO Auto-generated method stub
		otherMapper.updateByPrimaryKey(t);
	}


	@Override
	public void delete(int id) {
		// TODO Auto-generated method stub
		otherMapper.deleteByPrimaryKey(id);
	}


	@Override
	public Others selectById(int id) {
		// TODO Auto-generated method stub
		return otherMapper.selectByPrimaryKey(id);
	}

	
}
